<?php

namespace Platform\Models\Scenario;

use Platform\Models\BaseModel;

class ScenarioForest extends BaseModel {

    const TABLE_NAME = 'scenario_forest';

    public function initialize() {
        parent::initialize();
        $this->setSource(self::TABLE_NAME);
    }

    private $id;
    private $name;
    private $description;
    private $scenarioId;

    public function getId() {
        return $this->id;
    }

    public function getName() {
        return $this->name;
    }

    public function getDescription() {
        return $this->description;
    }

    public function getScenarioId() {
        return $this->scenarioId;
    }

    public function setId($id) {
        $this->id = $id;
    }

    public function setName($name) {
        $this->name = $name;
    }

    public function setDescription($description) {
        $this->description = $description;
    }

    public function setScenarioId($scenarioId) {
        $this->scenarioId = $scenarioId;
    }

    public function columnMap() {
        //列名 =》 属性名
        return [
            "id" => "id",
            "name" => "name",
            "description" => "description",
            "scenario_id" => "scenarioId",
        ];
    }

}
